package in.muton.panels.paginator.helpers.links;

import in.muton.edushare.url.EntityPageParams;
import in.muton.edushare.url.URLHelper;

import org.apache.wicket.model.IModel;

import com.edushare.common.vo.CourseInstances;
import com.edushare.common.vo.Courses;

public class CourseLink extends GenericLink {
	private static final long serialVersionUID = 5324168347955402622L;

	public CourseLink(String id, IModel<CourseInstances> cInst, String tagName) {
		super(id, URLHelper.getCourseHomeClass(), EntityPageParams
				.getParams(cInst), tagName, cInst.getObject().getCourse()
				.getCourseName());
	}

	public CourseLink(String id, IModel<Courses> course, String tagName, int dummy) {
		super(id, URLHelper.getCourseHomeClass(), EntityPageParams
				.getParams(course), tagName, course.getObject().getCourseName());
	}

}
